home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1995 November
/
EnigmA AMIGA RUN 02 (1995)(G.R. Edizioni)(IT)[!][issue 1995-11][Skylink CD].iso
/
earcd
/
util
/
misc
/
smartfiles.lha
/
Inject.rex
< prev
next >
Wrap
OS/2 REXX Batch file
|
1995-09-29
|
882b
|
35 lines
/* Asher's super-duper thingamajig - Version 1.1
Usage: rx ExnFile.rexx <filename> */
parse arg file
command1 = '<before goes here>'
command2 = '<after goes here>'
command3 = '<in between goes here>'
thefile = file
outf2 = 'ram:out' /* name of output file */
outf1 = outf2
open(thefile,file, 'r')
open(outf1, outf2, 'w')
signal loop
Loop:
do while ~eof(thefile)
xx = readln(thefile)
xx = command1 xx command2
/* Note: if you want the in between command, remove the "*" and "/" from
the following line */
/* writeln(outf1, command3) */
writeln(outf1, xx)
end
close(thefile)
say 'Done!'
exit
else do
signal loop
/* Note: if you want more than one "in between" command injected, you'll have
to fiddle with the script. Just put in a "writeIn(outf1, command<#)" for
each in between line down at the bottom and inject it at the proper place up
top. */